import request from "@/utils/request";

export const getMatchList = () => {
  return request.get("/match/data");
  // return new Promise<MatchInfo[]>((resolve, reject) => {
  //   const matchInfo: MatchInfo[] = [];
  //   for (let i = 0; i < 10; i++) {
  //     matchInfo.push({
  //       team: ["芙蓉王源", "尼古丁真"],
  //       game: "英雄联盟",
  //       time: new Date(),
  //       icon: "https://img.hoshinagi.top/esport/lg2.png",
  //     });
  //   }
  //   return resolve(matchInfo);
  // });
};
